/*
 * 作者:熊猫
 * 日期:2017 - 3 - 20 9 - 49 - 46
 *
 */

package net.lainiao.morethread.Chapter7.demo11;

/**
 * Created by Administrator on 2017/3/20.
 */
public class Sensor2 implements Runnable {
    private ParkingCounter counter;

    public Sensor2(ParkingCounter counter) {
        this.counter = counter;
    }

    @Override
    public void run() {
        counter.carIn();
        counter.carOut();
        counter.carOut();
        counter.carIn();
        counter.carIn();
        counter.carIn();
        counter.carIn();
        counter.carIn();
        counter.carIn();
    }
}
